//
//  MCActionDetailVideoCollectionCell.swift
//  MCBodyBuildingPro
//
//  Created by Renlvshijie on 2023/6/11.
//

import UIKit
import CLPlayer


class MCActionDetailVideoCollectionCell: UICollectionViewCell {
    
    private var collectionPlayer:CLPlayer?
    
    public var titleStr:String = ""{
        didSet {
            self.titleInfoLabel.text = titleStr
        }
    }
    public var viderUrlStr:String = "" {
        didSet {
            if collectionPlayer == nil {
                collectionPlayer = CLPlayer()
            }
            collectionPlayer?.url = URL(string:viderUrlStr)
            collectionPlayer?.frame = self.viderView.bounds
            self.viderView.addSubview(collectionPlayer!)
        }
    }
    
    @IBOutlet weak var titleInfoLabel: UILabel!
    @IBOutlet weak var viderView: UIView!
    override func awakeFromNib() {
        super.awakeFromNib()
     
        
    }

}
